package com.infy.olt.service;

import java.util.Date;

import com.infy.olt.dao.AccessDBConnection;
import com.infy.olt.dto.EmpDtl;
import com.infy.olt.dto.LoginDtl;

public class TableConfigurationService {
	
	private AccessDBConnection accessDBConnection;
		
	/**
	 * @return the accessDBConnection
	 */
	public AccessDBConnection getAccessDBConnection() {
		return accessDBConnection;
	}


	/**
	 * @param accessDBConnection the accessDBConnection to set
	 */
	public void setAccessDBConnection(AccessDBConnection accessDBConnection) {
		this.accessDBConnection = accessDBConnection;
	}


	public LoginDtl getLoginDetails(String loginId){
		LoginDtl loginDtl = accessDBConnection.getLoginDetails(loginId);
		return loginDtl;		
	}
	
	public EmpDtl getEmployeeDetails(String empId){
		EmpDtl empDtl = accessDBConnection.getEmployeeDetails(empId);
		return empDtl;		
	}


	public int updateOncallDetails(String onCallDetails, String remarks,
			String startDate, String endDate, String totalHrs, String subCluster, String ibu, String resourceName) {
		return accessDBConnection.updateOncallDetails(onCallDetails, remarks, startDate, endDate, totalHrs, subCluster, ibu, resourceName);
	}
		
}
